function showDetail(model) {
    const title = model.title != undefined ? config.foo : 'H!';
    const age = model.age != undefined ? config.age : '12';

    console.log([title, age]);
}

function showDetail2({title = 'H2', age = 100}) {
    console.log([title, age]);
}


showDetail({});


showDetail2({title : 'H2', age : 10000});